package webbandidong.bo.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import webbandidong.bo.AdminBO;
import webbandidong.dao.AdminDAO;
import webbandidong.model.Admin;

@Service("adminBOImpl")
public class AdminBOImpl implements AdminBO {

    @Autowired
    private AdminDAO adminDAO;

    public void setAdminDAO(AdminDAO adminDAO) {
        this.adminDAO = adminDAO;
    }

    public String checkExists(Admin admin) {
        return adminDAO.checkExists(admin);
    }

    public String updateAdmin(Admin admin) {
        return adminDAO.updateAdmin(admin);
    }
}
